package com.vichat.user.service;

import com.vichat.common.vo.PageFilter;
import com.vichat.user.entity.SysStaticData;

import java.util.List;

/**
 * Created by ranjx on 2016/11/17.
 */
public interface IStaticDataService {
    /**
     * 获取静态表all数据
     *
     * @return
     */
    public List<SysStaticData> queryStaticDatas();

    /**
     * 获取对应的数据
     *
     * @param codeKey
     * @param codeValue
     * @return
     */
    public SysStaticData getStaticData(String codeKey, String codeValue);

    /**
     * 获取对应的数据
     *
     * @param codeKey
     * @return
     */
    public List<SysStaticData> getStaticData(String codeKey);

    /**
     * 根据codeId获取系统参数
     *
     * @param codeId
     * @return
     */
    public SysStaticData queryStaticDataByCodeId(long codeId);

    /**
     * 保存系统参数
     *
     * @param sysStaticData
     * @throws Exception
     */
    public void saveOrUpdStaticData(SysStaticData sysStaticData) throws Exception;

    /**
     * 删除系统参数
     *
     * @param codeId
     * @throws Exception
     */
    public void delStaticData(long codeId) throws Exception;

    /**
     * 查询系统参数
     *
     * @param queryBean
     * @return
     * @throws Exception
     */
    public List<SysStaticData> querySysStaticData(SysStaticData queryBean, PageFilter pf) throws Exception;

    /**
     * 查询系统参数数量
     *
     * @param queryBean
     * @return
     */
    public Long countSysStaticData(SysStaticData queryBean) throws Exception;

}
